package vip.george.sentinel2.service.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import vip.george.common.dto.ResultVO;
import vip.george.common.entity.ScUser;

/**
 * @author george
 * @since 2023/7/5
 * <p>user模块的feign调用接口</p>
 */
@FeignClient(name = "sc-user-service")
public interface FeignUserClient {


    /**
     * 根据id查询单个用户
     */
    @GetMapping("/user/queryUser")
    ResultVO<ScUser> queryUser(@RequestParam Long id);

}
